package com.neucor.web;

import com.neucor.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 *
 * @author irabin
 */
@Controller
@RequestMapping("/member")
public class MemberController {

    @Autowired
    private MemberService memberService;
    
    @RequestMapping(value = "/{id}", method = RequestMethod.GET)
    public String getMember(@PathVariable String id, ModelMap model) {
        
        model.addAttribute("member", "test");
        return "details";
    }
    
    
}
